package com.fuchen.shengwu.repository;

import com.fuchen.shengwu.entity.DatasourceConnectionEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by luganlin on 26/05/2018.
 */
@Repository
public interface DatasourceConnectionRepository extends JpaRepository<DatasourceConnectionEntity, Long>{

    List<DatasourceConnectionEntity> findAll();

    DatasourceConnectionEntity findOneById(Long id);

    DatasourceConnectionEntity save(DatasourceConnectionEntity entity);

}
